import { createStore, applyMiddleware } from 'redux';
import countReducer from './count_reducer';
import thunk from 'redux-thunk';

// 如果需要让store支持异步action则必须添加参数applyMiddleware(thunk)
export default createStore(countReducer, applyMiddleware(thunk));
